/* pages/feedback/feedback.wxss */
.container {
  padding: 5px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2a5298 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* 背景装饰元素 */
.container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* 头部样式 */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0 8px 0;
  width: 100%;
}

.header-icon {
  font-size: 28px;
  margin-bottom: 6px;
  color: #3498db;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.header-text {
  font-size: 13px;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 表单组样式 */
.form-group {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-size: 13px;
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  position: relative;
  padding-left: 7px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.form-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 3px;
  height: 12px;
  background: linear-gradient(to bottom, #3498db, #2c3e50);
  border-radius: 1px;
}

/* 反馈类型选择器 */
.type-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.type-item {
  flex: 1;
  min-width: 45%;
  height: 60px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.type-item.active {
  border-color: white;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(44, 62, 80, 0.3));
  color: white;
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
  transform: translateY(-1px);
}

.type-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

/* 反馈内容 */
.feedback-textarea {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  color: white;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.feedback-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.feedback-textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
}

.word-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  display: block;
  margin-top: 5px;
}

/* 联系方式输入 */
.contact-input {
  width: 100%;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  color: white;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
}

/* 图片上传区域 */
.upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.upload-btn {
  width: 70px;
  height: 70px;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
}

.upload-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.upload-icon {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3px;
}

.upload-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.image-preview {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.delete-icon {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* 提交按钮 */
.submit-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  height: 36px;
  line-height: 36px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  width: 100%;
  box-sizing: border-box;
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.submit-btn.disabled {
  background: #bdc3c7;
  box-shadow: none;
  opacity: 0.7;
}

/* 成功提示模态框 */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  width: 260px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2a5298 100%);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: modalAppear 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.success-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.success-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 16px;
  padding: 0 6px;
}

.modal-btn {
  width: 160px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  line-height: 36px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.modal-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 占位符样式 */
.placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}